<%@ page import="java.util.Calendar" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>后台管理 - 易买网</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<script type="text/javascript" src="../scripts/function-manage.js"></script>
</head>
<body>
<%@include file="nav.jsp"%>
<div id="position" class="wrap">
	您现在的位置：<a href="index.jsp">易买网</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
	<%@include file="left.jsp"%>
	<div class="main">
		<h2>修改用户</h2>
		<div class="manage">
			<form action="userUpdate" method="get">
				<input type="hidden" name="pageIndex" value="${pageIndex}"/>
				<table class="form">
					<tr>
						<td class="field">用户名(*)：</td>
						<td><input type="text" class="text" name="userName" value="${user.eu_user_id}" readonly="readonly" /></td>
					</tr>
					<tr>
						<td class="field">真实姓名(*)：</td>
						<td><input type="text" class="text" name="name" value="${user.eu_user_name}" /></td>
					</tr>
					<tr>
						<td class="field">登录密码(*)：</td>
						<td><input type="text" class="text" name="passWord" value="${user.eu_password}" /></td>
					</tr>
					<tr>
						<td class="field">性别(*)：</td>
						<td>
							<input type="radio" name="sex" value="男" ${user.eu_sex.equals("男") ? 'checked' : ''}/>男
							<input type="radio" name="sex" value="女" ${user.eu_sex.equals("女") ? 'checked' : ''}/>女
						</td>
					</tr>
					<tr>
						<td class="field">出生日期(*)：</td>
						<td>
							<select name="birthyear">
								<c:forEach var="year" begin="1900"  end="<%= Calendar.getInstance().get(Calendar.YEAR) %>">
									<option value="${year}" ${year == user.birthYear ? 'selected="selected"' : ''}>${year}</option>
								</c:forEach>
							</select>年
							<select name="birthmonth">
								<c:forEach var="month" begin="1" end="12">
									<option value="${month}" ${month == user.birthMonth ? 'selected="selected"' : ''}>${month}</option>
								</c:forEach>
							</select>月
							<select name="birthday">
								<c:forEach var="day" begin="1" end="31">
									<option value="${day}" ${day == user.birthDay ? 'selected="selected"' : ''}>${day}</option>
								</c:forEach>
							</select>日
						</td>
					</tr>
					<tr>
					  <td class="field">身份证：</td>
					  <td><input type="text" class="text" name="identityCode" id="identityCode" value="${user.eu_identity_code}"/></td>
				  </tr>
					<tr>
						<td class="field">手机号码：</td>
						<td><input type="text" class="text" name="mobile" value="${user.eu_mobile}" /></td>
					</tr>
					<tr>
						<td class="field">电子邮件：</td>
						<td><input type="text" class="text" name="email" value="${user.eu_email }" id="email" /></td>
					</tr>
					<tr>
						<td class="field">地址(*)：</td>
						<td><input type="text" class="text" name="address" value="${user.eu_address}" id="address" /></td>
					</tr>
					<tr>
						<td></td>
						<td><label class="ui-blue"><input type="submit" name="submit" value="更新" /></label></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2022 卓京教育 All Rights Reserved. 湘ICP证1001号
</div>
</body>
</html>
